var testView = {
	loginSucceeded:function() {
		console.log(torchd.FB.conduit.user);
	},
	loginFailed:function() {
		alert('login failed');
	},
	init:function() {
		$(document).ready(function() {
			$('#get-first-name').click(function() {
				torchd.FB.conduit.user.getInfo('first_name', function(response) {
					alert('First name is ' + response);
				});
			});
			$('#get-last-name').click(function() {
				torchd.FB.conduit.user.getInfo('last_name', function(response) {
					alert('Last name is ' + response);
				});
			});
			$('#get-friends').click(function() {
				torchd.FB.conduit.getUserFriends(function(response) {
					for(var i=0;i<10;i++) {
						$('body').append('<p><img src="' + torchd.FB.conduit.profilePicture('square', response[i].id) + '"/> (' + response[i].id + ') ' + response[i].name + '</p>');
					}
				});
			});
		});
	}
};	